package com.acwer.drools.domain;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor  
@AllArgsConstructor
public class RpnMsg {
	
	@ApiModelProperty("返回码")
	private Integer code;
	
	@ApiModelProperty("消息")
	private String msg;
	
	@ApiModelProperty("返回数据")
	private Object data;
	
	
	@ApiOperation("成功方法体")
	public static RpnMsg SUCCESS() {
		return new RpnMsg(0, "成功", null);
	}
	@ApiOperation("失败方法体")
	public static RpnMsg FAIL() {
		return new RpnMsg(1, "失败", null);
	}
}
